<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图片上传完成之后展示</title>
</head>

<body>
  <canvas id="canvas">图片显示区域</canvas>
  <label for="image">上传图片</label>
  <input type="file" name="image" id="file-input" accept="image/*">
  <script src="./10 canvas.js"></script>
</body>

</html>